/**
 * @author dumeng
 */
import request from '@/utils/request'

/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: {
      dictCode
    }
  })
}
/**
 * 获取分类树形列表
 */
export function fetchList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/getClassifyTree',
    method: 'POST',
    data
  })
}
/**
 * 分类新增
 */
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/insert',
    method: 'POST',
    data
  })
}
/**
 * 分类编辑
 */
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/update',
    method: 'POST',
    data
  })
}
/**
 * 分类状态修改
 */
export function updateStatus(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/updateStatus',
    method: 'POST',
    data
  })
}
/**
 * 分类删除
 */
export function del(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/deleteById',
    method: 'POST',
    data
  })
}
/**
 * 分类移动  上移：SY  下移：XY
 */
export function move(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/moveSort',
    method: 'POST',
    data
  })
}

// 图片分类
/**
 * 获取分类树形列表
 */
export function otherFetchList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysClassify/getClassifyTree',
    method: 'POST',
    data
  })
}
/**
 * 分类新增
 */
export function otherInsert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysClassify/insert',
    method: 'POST',
    data
  })
}
/**
 * 分类编辑
 */
export function otherUpdate(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysClassify/update',
    method: 'POST',
    data
  })
}
/**
 * 分类状态修改
 */
export function otherUpdateStatus(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysClassify/updateStatus',
    method: 'POST',
    data
  })
}
/**
 * 分类删除
 */
export function otherDel(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysClassify/deleteById',
    method: 'POST',
    data
  })
}
/**
 * 分类移动  上移：SY  下移：XY
 */
export function otherMove(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysClassify/moveSort',
    method: 'POST',
    data
  })
}

// 人物分类
/**
 * 获取分类树形列表
 */
export function characterList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/craftsmanLibraryClassify/getClassifyTree',
    method: 'POST',
    data
  })
}
/**
 * 分类新增
 */
export function characterinsert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/craftsmanLibraryClassify/insert',
    method: 'POST',
    data
  })
}
/**
 * 分类编辑
 */
export function characterupdate(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/craftsmanLibraryClassify/update',
    method: 'POST',
    data
  })
}
/**
 * 分类状态修改
 */
export function characterStatus(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/craftsmanLibraryClassify/updateStatus',
    method: 'POST',
    data
  })
}
/**
 * 分类删除
 */
export function characterdel(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/craftsmanLibraryClassify/deleteById',
    method: 'POST',
    data
  })
}
/**
 * 分类移动  上移：SY  下移：XY
 */
export function charactermove(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/craftsmanLibraryClassify/moveSort',
    method: 'POST',
    data
  })
}
